/**
 * 系统api配置
 * @param {Object} http
 */
export function reportload(http) {

    let reportTemplateList = (data = {}) => http.post("resource/report-template/list", data)
    let reportTemplateEdit = (data = {}) => http.post("resource/report-template/edit", data)
    let reportTemplateConfigs = (data = {}) => http.post("resource/report-template/configs", data)
    let reportTemplateDel = (data = {}) => http.post("resource/report-template/delete", data)
    let reportTemplateAdd = (data = {}) => http.post("backend/report-template/add", data, {headers:{'Content-Type':'multipart/form-data'}})
    let reportTemplateUpdate = (data = {}) => http.post("backend/report-template/update", data, {headers:{'Content-Type':'multipart/form-data'}})


    let reportDownloadList = (data = {}) => http.post("resource/report-download/list", data)
    let reportDownloadEdit = (data = {}) => http.post("resource/report-download/edit", data)
    let reportDownloadDel = (data = {}) => http.post("resource/report-download/delete", data)
    let reportDownload = (params = {}) => http.get("backend/report/download", {params: params})
    let reportOutput = (data = {}) => http.post("backend/report/output", data)

    return {
        reportTemplateAdd, reportTemplateUpdate, reportTemplateDel, reportTemplateEdit, reportTemplateList, reportTemplateConfigs,
        reportDownloadList, reportDownloadEdit, reportDownloadDel, reportDownload, reportOutput,
    }
}
